package com.jdbc.tester;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
import java.util.Map;
import java.util.Properties;

/**
 * Created with IntelliJ IDEA.
 * User: x07e
 * Date: 11/12/12
 * Time: 1:13 PM
 * To change this template use File | Settings | File Templates.
 */
public class Main {
    private static final String PROPFILENAME= "TdJdbcConnectionTester.properties";
    private static Properties props ;

    private static JDBCClient client = new JDBCClient();

    public static void main(String[] args) {
        try {
            readProperties();
            client.execute(props);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }

    }

    private static void readProperties() throws IOException {
        props = new Properties();
        props.load(new FileInputStream(PROPFILENAME));
    }
}

